package com.sihai.ehr.model.biz;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import com.sihai.core.BaseEntity;

/**
 * 识别证对象
 *
 * @author Henry-PC
 *
 */
@Entity
public class IdentificationCard extends BaseEntity<Long> {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -3091626453940438027L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

    /** 面试安排编号 */
    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "arrange_id")
    private InterviewArrange interviewArrange;

	/** 员工信息ID */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_id")
	EmployeeinfoBase employeeinfoBase;

    /** 识别证领取状态 */
    private boolean receiveState;
	/** 生成时间 */
	private Date dentificationCardTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public InterviewArrange getInterviewArrange() {
        return interviewArrange;
    }

    public void setInterviewArrange(InterviewArrange interviewArrange) {
        this.interviewArrange = interviewArrange;
    }

    public EmployeeinfoBase getEmployeeinfoBase() {
        return employeeinfoBase;
    }

    public void setEmployeeinfoBase(EmployeeinfoBase employeeinfoBase) {
        this.employeeinfoBase = employeeinfoBase;
    }

    public boolean isReceiveState() {
        return receiveState;
    }

    public void setReceiveState(boolean receiveState) {
        this.receiveState = receiveState;
    }

    public Date getDentificationCardTime() {
        return dentificationCardTime;
    }

    public void setDentificationCardTime(Date dentificationCardTime) {
        this.dentificationCardTime = dentificationCardTime;
    }
}
